package test.coordinate;

import java.util.ArrayList;
import java.util.List;

public class TreeNode {
	private String name;
	private List<TreeNode> leftChildren;
	private List<TreeNode> rightChildren;
	private TreeNode middleChild;
	
	private int weight;
	private int leftWeight;
	private int rightWeight;
	private int coordX;
	private int coordY;	
	
	public TreeNode (String name) {
		this.name = name;
		this.leftChildren = new ArrayList<TreeNode>();
		this.rightChildren = new ArrayList<TreeNode>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<TreeNode> getLeftChildren() {
		return leftChildren;
	}

	public void setLeftChildren(List<TreeNode> leftChildren) {
		this.leftChildren = leftChildren;
	}

	public List<TreeNode> getRightChildren() {
		return rightChildren;
	}

	public void setRightChildren(List<TreeNode> rightChildren) {
		this.rightChildren = rightChildren;
	}

	public TreeNode getMiddleChild() {
		return middleChild;
	}

	public void setMiddleChild(TreeNode middleChild) {
		this.middleChild = middleChild;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public int getLeftWeight() {
		return leftWeight;
	}

	public void setLeftWeight(int leftWeight) {
		this.leftWeight = leftWeight;
	}

	public int getRightWeight() {
		return rightWeight;
	}

	public void setRightWeight(int rightWeight) {
		this.rightWeight = rightWeight;
	}

	public int getCoordX() {
		return coordX;
	}

	public void setCoordX(int coordX) {
		this.coordX = coordX;
	}

	public int getCoordY() {
		return coordY;
	}

	public void setCoordY(int coordY) {
		this.coordY = coordY;
	}
	
	
}
